package com.huitu.whht.base.core.api.sms.template.entities;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import com.huitu.whht.api.core.common.base.BaseEntity;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeDeserializer;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeSerializer;
import java.time.LocalDateTime;

/**
 * 说明: 短信模板基本信息表实体类,表名称: T_WHHT_SMS_TEMPLATE_B <br/>
 * 日期: 2019-04-15
 * @author LiuCW
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SmsTemplateB extends  BaseEntity {

private static final long serialVersionUID = 4L;
    public SmsTemplateB(){

    }

    /**
      * 短信模板编码
      */
    public String smsTempCd;
    /**
      * 短信模板标题
      */
    public String smsTempTitle;
    /**
      * 短信模板内容
      */
    public String smsTempContent;
    /**
      * 短信类型(0,其它;1,红线预警)
      */
    public String smsTp;
    /**
      * 预警等级(0,非预警;1,红色预警;2,橙色预警;3.黄色预警;4,蓝色预警)
      */
    public String warnGrade;
    /**
      * 操作用户ID
      */
    public String userId;
    /**
      * 时间戳
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    public LocalDateTime ts;
}